package cn.edu.ujn.bmis.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import cn.edu.ujn.bmis.dao.UserFunctionDao;
import cn.edu.ujn.bmis.model.UserFunction;
import cn.edu.ujn.bmis.service.UserFunctionManager;

@Component("userFunctionManager")
public class UserFunctionManagerImp implements UserFunctionManager {
	
	private UserFunctionDao userFunctionDao;

	public List<UserFunction> findUserFunction(String hql) {
		return userFunctionDao.findUserFunction(hql);
	}

	public boolean saveUserFunction(UserFunction userFunction) {
		return userFunctionDao.saveUserFunction(userFunction);
	}

	public boolean update(String hql) {
		return userFunctionDao.update(hql);
	}

	public UserFunctionDao getUserFunctionDao() {
		return userFunctionDao;
	}
	
	@Resource(name="userFunctionDao")
	public void setUserFunctionDao(UserFunctionDao userFunctionDao) {
		this.userFunctionDao = userFunctionDao;
	}
	
}
